]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Clear _searchTimeoutId when removing search
authorOwen W. Taylor <otaylor@fishsoup.net>
Thu, 13 Aug 2009 17:11:21 +0000 (13:11 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Thu, 13 Aug 2009 17:15:02 +0000 (13:15 -0400)
When we remove the search because the search empty is
entry, we need to reset _searchTimeoutId to 0.

http://bugzilla.gnome.org/show_bug.cgi?id=591719

js/ui/dash.js

index edd463e61acf502e41911ae88e6a653e100c70f4..4028c8de6dcbdd2c480a72fb84cc1f9ad0eaa420 100644 (file)
@@ -455,8 +455,10 @@ Dash.prototype = {
             if (!this._searchActive) {
                 if (this._searchPane != null)
                     this._searchPane.close();
-                if (this._searchTimeoutId > 0)
+                if (this._searchTimeoutId > 0) {
                     Mainloop.source_remove(this._searchTimeoutId);
+                    this._searchTimeoutId = 0;
+                }
                 return;
             }
             if (this._searchTimeoutId > 0)